package com.e.dianshang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: HP
 * Date: 2020/11/9 17:48
 * Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//利用JPA注解关联tb_ticket表
@Table(name = "tb_goods_class3")
public class GoodsClassThree implements Serializable {

    @Id
    @Column(name = "gt3_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer SId;

    // 二级id
    @Column(name = "gt2_id")
    private Integer gtEId;

    @Column(name = "gt3_name")
    private String name;

    // 商品图片
    @Column(name = "gt3_uri")
    private String uri;

    // 删除状态
    @Column(name = "gt3_state")
    private boolean states;
}
